|
Microwave filters GUI
2.0.3
|
Filter, synthesis and sweep parameters. More...
Public Member Functions | |
| def | readParam |
| Parse int, float, complex or string parameters from string stValue. | |
| def | __init__ |
| Initialize parameters class with list of strings. | |
| def | readChebash |
| Translate a list of Chebash parameters into a list of equivalent lossyfilters parameters. | |
Filter, synthesis and sweep parameters.
Definition at line 457 of file libcommonfunc.py.
| def libcommonfunc.Parameters.__init__ | ( | self, | |
| stList | |||
| ) |
Initialize parameters class with list of strings.
Each string is a line of the parameter file.
For backwards compatibility of parameter files, missing fields are set to None.
@param stList = List of strings. Each element of list is a line of input file.
@n If stList is equal to None, an empty instance of Parameters class is created.
(useful to create a new parameter file and for the copy funcion).
@return Parameter class instance.
Flag that indicates if the class instance contains information. empty==False or empty==True Path of output files, including directory and file name
Definition at line 505 of file libcommonfunc.py.
References libcommonfunc.Parameters.empty, libcommonfunc.Parameters.LPalgor, libcommonfunc.Parameters.LPcomplexZeros, libcommonfunc.Parameters.LPmaxIter, libcommonfunc.Parameters.LPNsamples, libcommonfunc.Parameters.LPrealZeros, libcommonfunc.myPrint(), libcommonfunc.Parameters.N, libcommonfunc.Parameters.nuqK11c1, libcommonfunc.Parameters.nuqK21c1, libcommonfunc.Parameters.nuqK21c2, libcommonfunc.Parameters.nuqK21c3, libcommonfunc.Parameters.nuqK22c1, libcommonfunc.Parameters.outDirName, libcommonfunc.Parameters.readChebash(), libcommonfunc.Parameters.transComplexZeros, libcommonfunc.Parameters.transImagZeros, libcommonfunc.Parameters.wFunc, and libcommonfunc.Parameters.zerosArrang.

| def libcommonfunc.Parameters.readChebash | ( | self, | |
| paramList | |||
| ) |
Translate a list of Chebash parameters into a list of equivalent lossyfilters parameters.
| paramList | = List of tuples (Chebash_Parameter_Name, value) where value is a string |
Definition at line 590 of file libcommonfunc.py.
References mwfiltersgui.SpecMask.BW, libcommonfunc.FrequencyTransformBP.BW, mwfiltersgui.SpecMask.f0, mwfiltersgui.myTableWidget.f0, libcommonfunc.Sparameters.f0, libcommonfunc.FrequencyTransformBP.f0, libcommonfunc.Parameters.N, libcommonfunc.Parameters.transComplexZeros, and libcommonfunc.Parameters.transImagZeros.
Referenced by libcommonfunc.Parameters.__init__().

| def libcommonfunc.Parameters.readParam | ( | self, | |
| key, | |||
| type, | |||
| stValue | |||
| ) |
Parse int, float, complex or string parameters from string stValue.
| key | = string containing parameter keyword. |
| type | = string containing parameter type: 'int', 'float', 'complex' or 'string'. 'Float' type allows a value of Inf, inf or INF. |
| stValue | = string containing parameter or a list of comma-separated parameters. Complex number format is 1+2j. |
Definition at line 468 of file libcommonfunc.py.
1.8.1.2